#include<iostream>
using namespace std;
int main()
{
	const int array_size = 128;
	int ia[array_size];
	int ival, icnt = 0;
	int sum = 0;
	while (cin >> ival && icnt < array_size)
	{
		ia[icnt++] = ival;
		sum += ival;
	}
	double average = 1.0 * sum / icnt;
	cout << "Sum of " << icnt
		<< " elements: " << sum
		<< " . Average: " << average << endl;
	return 0;
}